﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Manage.Master" AutoEventWireup="true" CodeBehind="Statistic.aspx.cs" Inherits="OnlineAuction.Admin.Statistic" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cph_Css" runat="server">
    <style type="text/css">
        .auto-style2 {
            width: 509px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cph_TopBar" runat="server">
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" EnablePartialRendering="true"/>
    <table style="width: 100%;">
        <tr>
            <td class="auto-style2">Time&nbsp;&nbsp; ---------&nbsp;&nbsp;&nbsp; From
                <asp:TextBox ID="txtTimeFrom" runat="server" />
                <asp:CalendarExtender ID="ceTimeFrom" runat="server" TargetControlID="txtTimeFrom"
                    Format="MM-dd-yyyy" />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; To
                <asp:TextBox ID="txtTimeTo" runat="server" />
                <asp:CalendarExtender ID="ceTimeTo" runat="server" TargetControlID="txtTimeTo"
                    Format="MM-dd-yyyy" />
                <br />
                <br />
                Price&nbsp;&nbsp; --------&nbsp;&nbsp;&nbsp; From
                <asp:TextBox ID="txtPriceFrom" runat="server" />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; To
                <asp:TextBox ID="txtPriceTo" runat="server" />
                <br />
                <br />
                Category:
                <asp:DropDownList ID="ddlCategory" runat="server" />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Status:&nbsp;
                <asp:DropDownList ID="ddlStatus" runat="server" />
            </td>
            <td style="vertical-align: central">
                <asp:Button ID="btnStatistic" runat="server" Text="Statistic" OnClick="btnStatistic_Click" />
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cph_Content" runat="server">
    <%--<asp:ScriptManager ID="scriptManager" runat="server" EnablePartialRendering="true" />--%>
    <asp:UpdatePanel ID="UpdtPnlForGrdVw" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <asp:Timer runat="server" ID="UpdateTimer" Interval="5000" OnTick="UpdateTimer_Tick" />
            <asp:GridView ID="grvStatistic" runat="server" AutoGenerateColumns="false" Width="679px">
                <Columns>
                    <asp:TemplateField HeaderText="Auction ID">
                        <ItemTemplate>
                            <asp:Label ID="lbAuctionID" runat="server" Text='<%# Bind("AuctionID") %>' />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Item Name">
                        <ItemTemplate>
                            <asp:Label ID="lbItemName" runat="server" Text='<%# Bind("ItemName") %>' />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Auction State">
                        <ItemTemplate>
                            <asp:Label ID="lbAuctionState" runat="server" Text='<%# Bind("AuctionStateName") %>' />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <%--<asp:TemplateField HeaderText="Show">
                            <ItemTemplate>
                                <a href='../Bid.aspx?AuctionID=<%#Eval("AuctionID") %>'>Show</a>
                            </ItemTemplate>
                        </asp:TemplateField>--%>
                </Columns>
                <EmptyDataTemplate>
                    <asp:Label ID="lbEmpty" runat="server" Text="Can't find any items" />
                </EmptyDataTemplate>
            </asp:GridView>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
